VT-d: handle return value of deassign_device
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 21 Jan 2010 09:11:06 +0000 (09:11 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 21 Jan 2010 09:11:06 +0000 (09:11 +0000)
commit1ac4cf5651e58f177621450342a943ee5457cf0a
tree9e177f12d21e72a6f859762ac702a8d2a0473459
parentd7efbf3bac545fca8c591dd20422ba8fe5c1c4af
VT-d: handle return value of deassign_device

deassign_device may fail, so need to capture its failure for
appropriate handling. This patch captures return values of
deassign_device, and prints error messages if it fails.

In addition, this patch also fixes some code style issues.

Signed-off-by: Weidong Han <Weidong.han@intel.com>
xen/arch/ia64/xen/dom0_ops.c
xen/arch/x86/domctl.c
xen/drivers/passthrough/iommu.c
xen/drivers/passthrough/pci.c